package extend;

public class FactoryTest {
    private static Object Circle;

    public static void main(String [] args) {
        ShapeFactory p = new ShapeFactory();
        Shape  s= p.getShape("Circle");//getShape是个方法用s来接收
        s.draw();
    }
}
